package site.microkang.house.renting.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 房屋信息来源
 * @author liukang
 * @date 2021/3/3 11:36
 */
public enum InfoSourceEnum {

    GOV_WEBSITE(1, "政府自建网站");

    @EnumValue
    private final Integer sourceType;
    private final String sourceDesc;

    InfoSourceEnum(Integer sourceType, String sourceDesc) {
        this.sourceType = sourceType;
        this.sourceDesc = sourceDesc;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public String getSourceDesc() {
        return sourceDesc;
    }

    @Override
    public String toString() {
        return "InfoSourceEnum{" +
                "sourceType=" + sourceType +
                ", sourceDesc='" + sourceDesc + '\'' +
                '}';
    }
}
